package com.rainy.guoran.business.manager.mapper;

import com.rainy.guoran.business.manager.entity.User;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserMapper {

    /**
     * 插入用户
     * @Param user
     * @return Long
     */
    Long insertUser(User user);

    /**
     * 更新用户
     *
     * @Param user
     */
    void updateUser(User user);

    /**
     * 查询用户
     *
     * @Param id
     * @return User
     */
    User selectUserById(Long id);

    /**
     * 删除用户
     *
     * @Param id
     * @return Boolean
     */
    Integer deleteUser(Long id);
}
